package dada_rent_car;

/**
 * @author duyong
 * @version 1.0
 * @date 2019/10/21 18:51
 */
//载货的车
public class Cargo_Car extends Car{
      //构造器
    public Cargo_Car(){

    }
    public Cargo_Car(int id,String name,int price,int cargo_capacity){
        super.Car(id,name,price,cargo_capacity,0);

    }
    @Override
    public void printf() {
        System.out.println(super.getId()+"\t"+super.getName()+"\t"+super.getPrice()+"元/天 \t"+super.getCargo_capacity()+"载重/吨");
    }
}
